import type * as Users from "./type"
import { request } from "@/http/axios"

/** 获取当前登录用户详情 */
export function getCurrentUserApi(params: { userId: number }) {
  return request<Users.CurrentUserResponseData>({
    url: "/auth/current-user/roles",
    method: "get",
    params: {
      userId: params.userId
    }
  })
}
